package com.example.foobar.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.foobar.business.service.DyCommentService;
import com.example.foobar.business.service.DyVideoService;
import com.example.foobar.dao.service.DyCommentDaoService;
import com.example.foobar.dao.service.DyVideoDaoService;
import com.example.foobar.entity.DyComment;
import com.example.foobar.entity.DyVideo;
import com.example.foobar.param.DyCommentPageParam;
import com.example.foobar.param.DyVideoPageParam;
import com.example.foobar.vo.DyVideoQueryVo;
import io.geekidea.springbootplus.framework.core.pagination.Paging;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class DyVideoServiceImpl implements DyVideoService {

    @Autowired
    DyVideoDaoService dyVideoDaoService;

    @Override
    public boolean saveDyVideo(DyVideo dyVideo) {
        return dyVideoDaoService.saveDyVideo(dyVideo);
    }

    @Override
    public boolean updateDyVideo(DyVideo dyVideo) {
        return dyVideoDaoService.updateDyVideo(dyVideo);
    }

    @Override
    public boolean deleteDyVideo(Long id) {
        return dyVideoDaoService.deleteDyVideo(id);
    }

    @Override
    public DyVideo getById(Long id) {
        return dyVideoDaoService.getById(id);
    }

    @Override
    public Paging<DyVideoQueryVo> getDyVideoPageList(DyVideoPageParam dyVideoPageParam) {
        return dyVideoDaoService.getDyVideoPageList(dyVideoPageParam);
    }

    @Override
    public List<DyVideo> list(LambdaQueryWrapper<DyVideo> dyVideoLambdaQueryWrapper) {
        return dyVideoDaoService.list(dyVideoLambdaQueryWrapper);
    }
}
